package com.wn.alibaba.cloud.sentinel.client;

import com.wn.cloud.common.constant.ResponseEnum;
import com.wn.cloud.common.response.DataResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @FileName: ProviderClientFallback
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/4/12 - 1:23
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@Slf4j
@Component
public class ProviderClientFallback implements ProviderClient {

    @Override
    public DataResult<Object> getData1(long id) {
        return (DataResult<Object>) DataResult.genMessageResult(ResponseEnum.FALLBACK);
    }
}
